package ua.kpi.javaTraining;

import java.util.Date;
import java.util.GregorianCalendar;

/**
 * Class simulating academic discipline
 * 
 * @param name
 *            Title of the discipline
 * @param hours
 *            Hours per semester
 * @param day
 *            Examination day
 * @param month
 *            Examination month
 * @param year
 *            Examination year
 */
public class Subject extends SubjectBehaviour {
	private String subjectName;
	private int hours;
	private Date examDate;

	public Subject(String subjectName, int hours, GregorianCalendar calendar) {
		this.subjectName = subjectName;
		this.hours = hours;
		examDate = calendar.getTime();
	}

	public Subject(String n) {
		this.subjectName = n;
	}

	public Date getExamDate() {
		return examDate;
	}

	public String getSubjectName() {
		return subjectName;
	}

	public int getSubjectHours() {
		return hours;
	}

	public String setName(String subjectName) {
		return this.subjectName = subjectName;
	}

	public int seSubjectHours(int subjectHours) {
		return hours = subjectHours;
	}

	public Date setExamDate(String subjectName, int hours,
			GregorianCalendar calendar) {
		this.subjectName = subjectName;
		return examDate = calendar.getTime();
	}

}